<ion-view view-title="客户列表" class="contacts home-view">

    <ion-nav-bar>
        <ion-nav-back-button class="button-clear" ng-click="goDivision()">
        </ion-nav-back-button>
    </ion-nav-bar>

    <ion-header-bar class="bar-subheader">
        <search-bar class="search" placeholder="姓名" search="data.search"></search-bar>
    </ion-header-bar>

    <ion-content class="my-content">
        <ion-item ng-repeat="contact in data.contacts" 
        class="chat-box" ng-click="addContacts(contact)">
            <div class="contactName">{{contact.Name}}</div>
            <div class="contactAddress">{{contact.AddressName}}</div>
        </ion-item>
        <ion-infinite-scroll ng-if="data.scrolled" on-infinite="loadMore()"  distance="5%">
            <ion-spinner></ion-spinner>
        </ion-infinite-scroll>
        <div class="noMoreMsg" ng-show="data.loadOver">亲，没有更多数据了O(∩_∩)O
        </div>
    </ion-content>

</ion-view>